<?

//require_once(dirname(__FILE__) . '/../abstract/htmail.php');

class bf_htmail_mail extends bf_htmail {

	protected function sendmail($to, $headers, $body) {
		$m = array();
		$subject = (preg_match('/\bSubject:\s*([^\r]+)\r\n/', $headers, $m) ? $m[1] : $this->opts['subject']);
		return (mail($to, $subject, $body, $headers) ? 0 : -1);
	}
}

?>